package com.employee.attendance_daka.mapper;

import com.employee.attendance_daka.domain.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface UserMapper {
    /**
     * 登录
     *
     * @param username
     * @param password
     * @return
     */
    User login(@Param("username") String username, @Param("password") String password);

    int register(@Param("username") String username, @Param("password") String password, @Param("email") String email);

    int existsByUsername(String username);

    int existsByEmail(String email);
}
